function getCookie(name) {
    var r = document.cookie.match("\\b" + name + "=([^;]*)\\b");
    return r ? r[1] : undefined;
}


$(function () {
    $(".pic_info").submit(function (e) {
        e.preventDefault()

        //上传头像
         $.ajax({
            type : "POST",
            url : "/user/pic_info",
            data : new FormData($('.pic_info')[0]),
            async: false,
            cache: false,
            contentType: false,
            processData: false,
            success : function(code) {
                if(code==='200'){
                    alert('提交成功！');
                }
            }
         });

    })
})